package com.ir.slassm.vo;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class SLMessageVO {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long slMessageID;
	
	@Persistent
	private Date createdDate;
	
	@Persistent
	private String senderId;
	
	@Persistent
	private String recieverId;
	
	@Persistent
	private String senderURI;
	
	@Persistent
	private String messageHeader;

	@Persistent
	private String messageBody;
	
	public static SLMessageVO createDefaultInstance() {
		SLMessageVO message = new SLMessageVO();
		message.setCreatedDate(new Date());
		
		return message;
	}

	public Long getSlMessageID() {
		return slMessageID;
	}

	public void setSlMessageID(Long slMessageID) {
		this.slMessageID = slMessageID;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getSenderId() {
		return senderId;
	}

	public void setSenderId(String senderId) {
		this.senderId = senderId;
	}

	public String getRecievedId() {
		return recieverId;
	}

	public void setRecievedId(String recievedId) {
		this.recieverId = recievedId;
	}

	public String getSenderURI() {
		return senderURI;
	}

	public void setSenderURI(String senderURI) {
		this.senderURI = senderURI;
	}

	public String getMessageHeader() {
		return messageHeader;
	}

	public void setMessageHeader(String messageHeader) {
		this.messageHeader = messageHeader;
	}

	public String getMessageBody() {
		return messageBody;
	}

	public void setMessageBody(String messageBody) {
		this.messageBody = messageBody;
	}
}
